package demo7;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
//@Scope("singleton")//单例 不写默认是单例
@Scope("prototype")//多例 每次获取对象时都会创建新对象 如需要则必写
public class DBConnect {
}
